package com.qf.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Book {

    private Integer bookid;
    private String bookname;
    private Integer categoryid;
    private Integer bookstatus;//1是连载,0是完结
    private Integer authorid;//作者外键
    private Double booktotalstars;//评分
    private  Integer  booktotalstartimes;//总评分次数
    private String bookdescription;//简介
    private Double bookaveragestar;//图书星级
    private Date shelftime;//上架时间
    private Integer readernum;//阅读数
    private Integer favnum;//收藏数
    private Integer clicksnum;//点击数量
    private Integer datastatus;//1为禁用或者删除,0为正常
    private String  bookpicurl;//图片地址
    private Categories categories;
    private Authors authors;

    public Authors getAuthors() {
        return authors;
    }

    public void setAuthors(Authors authors) {
        this.authors = authors;
    }

    public Categories getCategories() {
        return categories;
    }

    public void setCategories(Categories categories) {
        this.categories = categories;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookid=" + bookid +
                ", bookname='" + bookname + '\'' +
                ", categoryid=" + categoryid +
                ", bookstatus=" + bookstatus +
                ", authorid=" + authorid +
                ", booktotalstars=" + booktotalstars +
                ", booktotalstartimes=" + booktotalstartimes +
                ", bookdescription='" + bookdescription + '\'' +
                ", bookaveragestar=" + bookaveragestar +
                ", shelftime=" + shelftime +
                ", readernum=" + readernum +
                ", favnum=" + favnum +
                ", clicksnum=" + clicksnum +
                ", datastatus=" + datastatus +
                ", bookpicurl='" + bookpicurl + '\'' +
                '}';
    }

    public Book() {
    }

    public Book(Integer bookid, String bookname, Integer categoryid, Integer bookstatus, Integer authorid, Double booktotalstars, Integer booktotalstartimes, String bookdescription, Double bookaveragestar, Date shelftime, Integer readernum, Integer favnum, Integer clicksnum, Integer datastatus, String bookpicurl) {
        this.bookid = bookid;
        this.bookname = bookname;
        this.categoryid = categoryid;
        this.bookstatus = bookstatus;
        this.authorid = authorid;
        this.booktotalstars = booktotalstars;
        this.booktotalstartimes = booktotalstartimes;
        this.bookdescription = bookdescription;
        this.bookaveragestar = bookaveragestar;
        this.shelftime = shelftime;
        this.readernum = readernum;
        this.favnum = favnum;
        this.clicksnum = clicksnum;
        this.datastatus = datastatus;
        this.bookpicurl = bookpicurl;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Integer getBookstatus() {
        return bookstatus;
    }

    public void setBookstatus(Integer bookstatus) {
        this.bookstatus = bookstatus;
    }

    public Integer getAuthorid() {
        return authorid;
    }

    public void setAuthorid(Integer authorid) {
        this.authorid = authorid;
    }

    public Double getBooktotalstars() {
        return booktotalstars;
    }

    public void setBooktotalstars(Double booktotalstars) {
        this.booktotalstars = booktotalstars;
    }

    public Integer getBooktotalstartimes() {
        return booktotalstartimes;
    }

    public void setBooktotalstartimes(Integer booktotalstartimes) {
        this.booktotalstartimes = booktotalstartimes;
    }

    public String getBookdescription() {
        return bookdescription;
    }

    public void setBookdescription(String bookdescription) {
        this.bookdescription = bookdescription;
    }

    public Double getBookaveragestar() {
        return bookaveragestar;
    }

    public void setBookaveragestar(Double bookaveragestar) {
        this.bookaveragestar = bookaveragestar;
    }

    public Date getShelftime() {
        return shelftime;
    }

    public void setShelftime(Date shelftime) {
        this.shelftime = shelftime;
    }

    public Integer getReadernum() {
        return readernum;
    }

    public void setReadernum(Integer readernum) {
        this.readernum = readernum;
    }

    public Integer getFavnum() {
        return favnum;
    }

    public void setFavnum(Integer favnum) {
        this.favnum = favnum;
    }

    public Integer getClicksnum() {
        return clicksnum;
    }

    public void setClicksnum(Integer clicksnum) {
        this.clicksnum = clicksnum;
    }

    public Integer getDatastatus() {
        return datastatus;
    }

    public void setDatastatus(Integer datastatus) {
        this.datastatus = datastatus;
    }

    public String getBookpicurl() {
        return bookpicurl;
    }

    public void setBookpicurl(String bookpicurl) {
        this.bookpicurl = bookpicurl;
    }
}
